Added IR detection