Added command line API.