Added agent callbacks.