Convert to co2, add pipeline and repl methods.