Conversion of first part of the solver file