Added the ArrayList for scanning directories