Updated script for copying files.