Adding main site PHP bits.