Added buffer creation to terrain prep