Started adding directory polling functionality