Added some basic window functionality.