Functional handling of file reading and batching still problematic