Not compiling, trying to fix AMC file reading error