Ensured unique dedupeid. Also corrected threshold graph for large values