Rewrite most parts of regtool