Thanks alot. I used the more defensive programming aproach.