Restructures output to console