Moved continuous replication to a separated function
Added clone functionality