Added variance parameter for terrain generation.