Modified InputParser.cpp.