Legislation role in automated enforcement