Added script to scan directories