Added command line functionality.