added shared instance and rest of sendCommand: