Finished first draft of clonevm method