Added Danny Reinhold's version 5 code, at least the last I could find.