Code changes to get site working on Tim's server