Added distance based cutoff for tasks.