First stab at making this runnable on Heroku.