Yea, my code was to count the total records. I guess there just isn't a magic solution to this ;/ I do know that hashtables are definitely the most efficient way to store any large set of data. When I first started scripting with msl, I wrote a couple of scripts using ini's. They eventually got so big that they crashed mirc. I've never had any trouble with hashtables and I have some with over 50 thousand records.