Implemented filtering in Schedule to ensure directories aren't added to the queue