Removed the invalid deep clone function