Update callback function