Added Getting and Cleaning Directory