Added limit to the number of file downloads. Removed deadline.