Custom equality function may be used