AVALANCHE: update file handling in multiple files.