Added clone function.