Fitness state machine