Don't build a vector of returns. Just modify the Function in the loop.