BatchManager logic mainly