Just getting some statemachine boilerplate code out of the way