Added support for delayed violation and provisioning enforcement

Please put some parentheses, it will make the code more readable.