Added command line processing