Compare works correctly

Support class is added. Data saving works. Compare should have been
developed for logging.