Added some access denied error handling.