1. Saving current state.