Ported FlagViewsRelationship. Maybe it even works\!