Added frequency distribution functions.