Made scoping case-insensitive.