Layers: initial implementation.