Add SaveProfileFiles() at the end of CreateAndSetProfile.