More work on terrain generation.