Implementing `copy`.