Add init batch median calc.