Cleaning up output messages