Sets up files.