Add data re-arranger subroutine.