Refactored sbs chromatic writer