Changes to terrain gen code.