Implementation is here, only problem: it hasn't been tested in any way.