Renamed clear_directory to clean_directory