Removed use of Cell to move variable into closure