$ 0 0 This actually works now. I was having problems further up in my code in selecting the right elements for the array. Thanks for the hints guys.