Update cswrite.php