Simple state snapshot implementation.