Which magistrate was in charge of the treasury?