Update callback function.