Added command-line client (for debug only).