Added filesize protection