Added profile switching.