Adding return value to ximIO. Formating output messages