Update code for heroku