Implemented density.