Use nodeContains where appropriate.