which => when.

I'm not entirely clear when. who calls this function.