Fixed the CodecHandler to support outgoing commands.