Thanks for the suggestion, I couldn't set the array to 512 words but your code sample inspired me to do it a bit different, its working correctly now. Thanks again.

Bob