Refine write output methods.