Enhancement to stats API Endpoing