Ah -- in defining the function, I had forgotten to scope it into its class. Works now.