All  stats functions work now