Introduced AppContext and AppContextHandlerFunc