Add stats method. #1919