Pays to read the code sometimes. The old loop was absurd...