Added input file parsing