Replace pairwise reduce of frames with appendN