Make callback function extendable