Added command line parsing.