diff --git a/main.cpp b/main.cpp
index 643901c..c2530f2 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,41 +1,62 @@
-/**
- * happy-fractal - A study of efficient and precise fractal rendering.
- * Copyright (C) 2022 Clyne Sullivan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
+// fractal - OpenCL-accelerated Mandelbrot renderer.
+// Written by Clyne Sullivan.
// If defined, program auto-zooms and measures runtime.
//#define BENCHMARK
+// If defined, split calculations across CPU threads instead of using OpenCL.
+//#define NO_OPENCL
+
#include
#include
#include
#include
+#include
#include
#include
#include
#include
+#include
#include
#include
#include
#include
+#include
+
+#ifndef NO_OPENCL
+// Include OpenCL libraries if they're required.
#define CL_HPP_TARGET_OPENCL_VERSION (300)
#define CL_HPP_ENABLE_EXCEPTIONS (1)
#include
-#include
+#else
+// Define helper types and functions to allow direct inclusion of the kernel.
+#include