Make possible to define a duration for alerts