Starting to add infrastructure for tracking object modes.

[#57444056]