Trying to deal with the wonderfull format of the input file.