Finished writing driver (untested)