Implemented timeout, authentication and access denied error handling.