Prepare files for workers.
Refactor loading into separate methods.