Proper formatting of output