Better way of getting width