Add detection of tasks helper