Logging to test why window won't open