Implement the copy function
Document persist and copy in extract handler