Making object comparision only work with passed in properties