Add and remove layers.