Perturbatio #1 oops, I think it was from the old code (I kept my bmaxfolder variable and never noticed it had changed to global) :)