Added ability to allow case insensitive matching.