Added ISR detection in TaskWrapper