 King Demetrius Zvonimir was originally a ban serving under King Peter Krešimir IV.After the Croats elected King Coloman of Hungary as King of Croatia 1102, the title of ban acquired the meaning of viceroy.Bans were appointed by the Hungarian king as his representatives in Kingdom of Croatia, heads of the parliament ("sabor") and also as supreme commander of Croatian Army.