Added 'safety' in case there are too many files for pptoas.  Temporary fix...