Begin adding sendCommand code