Formating output (plus small code formating).