Added query total for character states.