Separate layers and overlays to ensure that overlays are always on top of layers.