Adding findTasks method