Completed CLI implementation.