Layers are finally working as expected.