Density changer ported from SlimRoms