Improved cases writer