Bug in variable name: cwt_width -> width