Updated Variable,and added Folder exist check