``layerConfig`` may not be defined here