Implemented a bunch of functions for moving data.