Changed resource loading from a text file to a script