Minor changes to batch upload