Added multiple windows support.