Interim code for generating density dists.