Added more options for hooks on application class