Require thread to get around heroku plaform issues