You're referencing the wrong variable, and its redundant to compare to maxlength, since we know bctfilelist will always be higher then maxlength. I just don't want to pop an empty list... The "len" was noted... I must have missed that, Thanks