Added the ability to control the bulk density.