Implement getCmd, parseCmd etc.