Changed to foreign key scoping.