Removed boolean isON and changed call of sendCommand() method