Added ability to query for overlapping tasks