Add feature to log user stats periodically