Use Spencer's trick for looping through the array (for highlighting)