Handle functions in tag.each