Thanks for your help. I finally managed to get it working. The main problem was that the K-values were null. Once I fixed that & changed a few other things it all came together ;) Andi