Managed to display a window. Now let's clean up stuff.