Formatting, add legend