Removed the copy function since deepcopy serves just as well.