Extract copy into its own function