Changed max_widths to a hash