Added command-line parsing.