Use function to get width instead of variable names.