What temporary position could the Roman Senate appoint during times of war?

The temporary postition that the Roman senate would appoint in times of war was the dictator. When the crisis was over, or when the time of his appointed term was over, the dictator was expected to give up his power.