Added constants to represent state transitions