Added state type constants and functions.