added IR detection capability