Preparing files.