Changes for reading input files in MGC version