The code is still ugly but it works for now. I uploaded an example to Youtube to show it in action. Any comments are welcome. http://www.youtube.com/watch?v=jtygcwZsGCM Greetings Tobias Oelgarte