Oops! Reference to write_n() removed and changed into neat write() call.