Preparing files