Reverting to previous state.