Some updated, possibly broken, actually certainly broken code.