Added filesize limit support