logic error wrt motion resetting timer state.