Adding metadata to the layer