Adding copy function from source to target path