Implemented degree and error degree writers