Working on argument parsing routine