Add parsing old file function