Cleaned up array higlight function