Implement safe copy