Code to handle the distribution of files to the agents.