Added some window managemt stuff.