Implement Statistics Functions.