Basic summary stats refactored to be faster. Currently Troubleshooting.