Add stats feature to record server activity.