Final changes to remove errors in ACG.java