Added adding of extra documents when they grow too big