Layers implementation.