Attempt to compensate for the fact the files array can be in random order