Some "polymorphism" for the callback API entry point