Added input file reading