Declare FOROF temporary variable in the closure