Basic statemachine implemented