Thanks Steven. I had all the custom code for registering and importing the fields but not the Export Custom Fields code. Now it works perfectly! Thank you.