Add shortcut to set state at initialization.