Added log stat and add -p