- Reworked stabilization and mosaic code