Added addLayer.