Adding some debugging to get this working on heroku