Added logic to write config on state change
Added dummy write to dummy configs