Added referential integrity