Add callback function.