Reincreased the timeout
Removed needless debugging and added the proper permissions for the app.