Added hook for copying relationships