I would definitely add what the window parameter means to the dostring, just to be clear about what's going on here.