Initial submit of the clone helper + tests. Still needs some work.