Added different method for dealing with many-to-many.