Adding references in models