StateMachine now supports attributes for states