Formatting result to show in compact mode.