Get rid of some needless extra iterations over the attribute array. This will be faster.