c Single-Threaded Implementation