Before leaving Niš, Frederick had Godfrey of Würzburg preach a sermon on the importance of discipline and maintaining the peace. He also reorganized the army, dividing it into four, because it would be entering territory more firmly under Byzantine control and less friendly. The vanguard of Swabians and Bavarians was put under the command of the Duke of Swabia assisted by Herman IV of Baden and Berthold III of Vohburg. The second division consisted of the Hungarian and Bohemian contingents with their separate standard-bearers. The third was under the command of the Duke of Merania assisted by Bishop Diepold of Passau. The fourth was under Frederick's personal command and Rupert of Nassau was named its standard-bearer "in absentia".