State machine entities