Added Layers constructor.