This code does some stuff that might eventually work, but until that time I've just laid a rather unappealing egg.