Window management stuff. Going really slow.