State fixes:
Ensured initial state was set up correctly. Triggered changes centrally. Deeply cloned settings to avoid sharing data between instances.