Fixed the memory problem... didn't need to preallocate here.