Added a timerange for the rules when they are active, defaults to always on. Added custom error messages.