Add an extension instead of using CallbackFunction.