Added thread interrupt flag