Formatting. Also added function for iterating through table entries.