Addedd support for checking conflicts with the current task.