Don't know whether you already saw Schokokeks' project and free source code:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=283739#Post283739