Add function calls in pattern matching.