I see that there is no "function" attribute on the XML element, but maybe you can clarify what you want me to fix here.