Added new stats functions.