Updated to use a better calculations for size of label.