Single-threaded variant