Implemented compare button.