Updated code for using config vars on Heroku