Added basic command-line parsing functionality.