Add remove and isEqual method.