Added the file loading function to check for internal referers within a file