Add written bytes tracking for @bergerkiller