Added ComputeBoxSum