Compacting overlays. Fixing overlay initiazlization.