Implemented CLI entry point.