Added client-side stat tracking