Functioning boomerang state machine