Extract callback functions for backwards compatibility