Set up compatibility with heroku