Removing sendCommand and switching to webRequest