Add support for timers and fixed a bug in exit_conditions.value