Green: added a format_output method that gets things prepared for stdout