Added code for command line argument parsing