Detect that a profile is in use through a plugin?