Added listening function for Heroku