Added .afg to the output file