Refractored the code to allow other resources to be pulled in from the local site