Getting the next data batch