Compare functionality implemented