Improved parsing so that multiple logs can be processed at the same time