Filter out unneeded tasks