Changing things to template memcopy.