Wrote output method