It used to be that they do all the data analysis to detect corruption and so on, exactly as you said. Otherwise, if its controlled by the legislative investigators, then it pays exponentially to bribe them, because once they get into the legislative chamber, they will then cancel the investigation about their own election.