Replaced imperative loop against recursive function in .dispatch
Simulating function pipelining