Also, you do not have lexical closure of the block as well. For is just a loop.