Added validation for widths