Update stats command and add redis functionality.