Added cmdargs for command-line parsing.