Add compare callback