Using saveState() for all state changes.