Made changes so SetActiveAppState uses the provided enums.