Added a single-shot sector-write function which does not currently work.