Improvements in the copy assignment function.