Add dp/density related functions.