Minimal example showing setup and threaded processing