Changed hardcoded width to using Registry