Removed some mem_copying