Restructure print output