Ah -- in defining the function, I had forgotten to scope it into its class. Works now.
"If you tell the truth, you don't have to remember anything" -Mark Twain