Replaced this with explicit state, since context is not null when using
those.