Passing the layer arg to the wrapper.