Finished copy function.