Added argument parsing and help messages.