Using home variable
Reading all batches in one file
Writing batch id
Writing batch id