Adapted for heroku and removed Twitter functionality.