New interface for externalization (rank,names). The new interface does not work for setvar subroutines for the moment. Optimize loop in harvest subroutine.