maybe consider combining irOn and irOff into setIr ?