Adding a density implementation.