Updated density code, as there was a slight derp