Instead of using window, we should be able to use a variable above (after `define`). Thoughts?