Add stats support to batch tools