State recording