Added executeCommand() for sending sync messages.