Copied version from Annex60 library.
Revised copy script.