Use new nextBlocks function in findFunctions