Updated get stats method