Added argument parsing code.