Created thread to read different types.
merged files