Added scan_id as index