Add custom object properties to clone function.