Added ping loop to prevent sleeping on heroku