Adding basic timer that can transition between states, governed by rules of a state machine.