Readjusted code to get site to work