Created BatchMiller function