This was an existing error, but I think the correct verb is "add". You don't define the function, you add it to your strategy.