Add Loop to Search Parent Directories