Implemented better example of how to hook the authorization handler.