Command-line version.