Formatting the result table