Improve partition table code.