Adding entity reference.