Original lib v0.69b 2005, 2008 Martin Walter