Added Exclude file and folder logic