Switch to deepCopy from clone.