Added logging of callback data for debugging.