Added timeout, checking for indexes in mongo, and creating size index for files imported from local file.