Cleaned up cnv.pl