Restore CloneFunction.cpp which got accidently