Fixed signature of estimate_scale