Adding Compare functionality