Updated return statement in getStats