Not quite sure why we should pass the window, docs say it is not needed, but there is a slight ambiguity.