Implement STATS command