Define and use constants for the states.