Added debugging code for remote debugging on Heroku