(c) 2002 Elias Pschernig

Of course you can use any parts of the code you find useful.