Checks for files being created before continuing