Context change

This consists of the first two commits from #1269, rebased and slightly modified.
May be add a comment explaining why we work with `_object` here