Fixed player, added layer compaction