Changed the code so that it only expects one header line per file.