Added case-insensitive option.