Add read_directory method