ComponentSettings are ‘session local variables’, which means they are global, but within the context of the current session. Any ‘TapThread’ started inside the session inherits the session as well.
// in here, a new session is created, you can modify all component settings, including(i believe) the profile.
// let's set the profile inside the session:
ComponentSettings.SettingsDirectoryRoot = profLocation;
// outside the session, we revert back to the previous session / component settings.