Use the history for state, rather than a single query.