Completed the data transfer functionality