Add some variables out of the layer scope