Turned Clone into a function