This needs to be copied, since it closes over some `__block` variables from this scope.