Refined the memory estimate