Changed to use nor-data.copy() instead of custom clone function