Move timers into functions.