Adding code to average row height for better measurement.