Thank you so much for your code!

I will definatly credit you if I put this on the net. One question though. I changed the code like you said, but I don't know what the 'cores' material is. Could you please tell me what it is so I can define it? I only know the basic of programming and very, very little about Newton.
[EDIT]: Nevermind, I figured it out.