Changing remote predictions to batch predictions