 Suleiman set up a privy council, which included the most important eunuchs, in the harem, thereby depriving traditional state institutions of their functions.The eunuchs' influence over military and civil affairs was checked only by their internal rivalries and the religious movement led by Muhammad Baqir Majlisi.The royal harem reached such proportions under Sultan Husayn (1668–1726) that it consumed a large part of state revenues.