Add relationships to callbacks.