Added Error/Write class