Remove diagnostic write statements