Abstract _write method into base class.
Make single-character convenience variables function-scoped where prudent.