Add a method to copy values.