Process files. Added exceptions.