Added checks for large amounts of files or frames