This is really nice. Thanks for the code and the references.