Modified to do one single bulk data transfer.