It also acted as an advisory council for the magistrates when these were in Rome, decided which provinces would be available for each year, and could grant imperium as a pro-magistrate. In addition, it was the Senate that received foreign embassies and despatched ambassadors, and also sent commissioners to oversee administrative arrangements in the provinces, giving it a critical role in shaping foreign affairs.