Move array merge to proper location.