#116: works, but needs more testing and doc, see test for usage.