Saving and transferring the layer structure