I see that there are other references to "method" in the code - is it just the UI that should say "function" instead?