Add scan_directory
Change to auto-generate