Removed unnecessary junk in file loading process