Collect some execution state into a state struct.