Ioannes, called the philosopher, one of the eunuch bedchamber attendants of the late empress Zoe, was appointed by Konstantinos IX to lead an army against the Pechenegs, who had advanced as far as Katasyrtai. He attacked them at night while they were asleep after drinking, massacred them, and took their heads on farm carts to the emperor