public function copy() {
        $settings = new Settings();
        $settings->fields = $this->fields;
        $settings->map = $this->map;
        $settings->flatten = $this->flatten;
        $settings->sort = $this->sort;
        $settings->count = $this->count;
        return $settings;
    }