A few changes to get the code running on shared hosting.