Add two minor functions to format data into tables