CLI implementation, written in C.