Find functions in a smarter way