Added some methods and logic to argumentParser.