Make compatible with Heroku.