Add callbacks.