Add command stat and plot