Modified app main for heroku deploy