Refactored argparse calls, so that code is cleaner.