Latest version. Only for posterity. About to overhaul.