Updated some Layer functionality, worked on TerrainLayer"