App state manager added.