Adding cpl-width function