Added really bad state machine