Added simple command-line argument parsing.