Added command-line argument parsing.