Linewidth reimplementation