Removed more unused variables
Fixed TerrainLevel bug