Major timer logic refactor to avoid buggy stuff.