Add support to scan directories

Add support to scan directories