Added padding and data sorting for length less processes