Added command line main.