Bug fix: need to use .reserve for uninitialized data.