Add outlet task handler thread
Fix ISR definition