Oops...fixed endless for loop