Implemented ICollection interface.