Think I fixed the end of array issue.