Revert "Assign to pointers instead of calling copy."

This reverts commit 400900cfd13e4ecdeaf1025f26c7997015f67c85.