Define Application States.