Adding finished flag to files.