Moved _adjustMaxNumberOfFiles call into the done calllback.