This is probably a wonderful situation for metaprogramming, aka create the function you need when you need it. I just don't know enough to do it yet. I'm going through some logs, and depending on whether the file I'm looking at is in a subfolder of 'accessed' or 'denied', I'll be adding information to the hash 'denied' or the hash 'accessed'. Before we go any further, is this already making life overly complicated, and is there a better way of doing it? Otherwise.. How can I avoid code repetition? Thanks, --Aldric