Made the doingWindows checks more specific as "if doingWindows == true {}