Added support for wildcarded pattern matching