Added call to scanDirectory.