Updated logfileToStruct to use parallel processing