Pipeline multi threaded implementation