Allow anonymous functions in rules