Adding functions to timers.c