New API in callback functions