Adding distance in gen_appraisal and rounding off similarity