History state maintanence