Making the keying work for both layers.