Implemented command codecs and handlers