Added toggling changes code