Added compare data functionality.