Main function for bloody Heroku