Implemented some utility methods for manipulating distributions.