Only copy what is needed