Autolathe rewrite.

New pull because lol git.