Thank you very much! That seems to be a working solution, tried on both local development server, and live server.
Not everbody would like to have the custom fields copied over, so just a thought for a future version of the plugin, this could be an option?
Anyways, thanks for the fast reply and help.