Make bcs application depend on the layer variable in the wrapper.