Barely documented but more or less working.