Argument parsing function added.