Attempt to tidy and document what's going on with record selection.