Command.encode added