Export clone function