Code for timers manipulation functions