Modified exclude method.