Implementing command interpreter.