Fixed mapping to match new signature of pattern search function.