Renamed variable for ApplicationState to as