Added IR Trigger code