Added closestWidth method