xsys_copy fn added.