LAI-5 updated input and output file processing