Separate CLI and library.