Added terrain smoothing