Added preallocation mode