Added protection for if lots of files get changed at once.