Fixes overflow problem with timers