Renamed $estfile to $input_file