Make storing and switching between multiple profiles actually work.