Following the initiative of Philip II, Macedonian kings continued to expand and equip the navy. Cassander maintained a small fleet at Pydna, Demetrius I of Macedon had one at Pella, and Antigonus II Gonatas, while serving as a general for Demetrius in Greece, used the navy to secure the Macedonian holdings in Demetrias, Chalkis, Piraeus, and Corinth. The navy was considerably expanded during the Chremonidean War (267–261 BC), allowing the Macedonian navy to defeat the Ptolemaic Egyptian navy at the 255 BC Battle of Cos and 245 BC Battle of Andros, and enabling Macedonian influence to spread over the Cyclades. Antigonus III Doson used the Macedonian navy to invade Caria, while Philip V allegedly sent two-hundred ships, some of them captured from the Ptolemies, to fight in the (unsuccessful) Battle of Chios in 201 BC. The Macedonian navy was reduced to a mere six vessels as agreed in the 197 BC peace treaty that concluded the Second Macedonian War with the Roman Republic, although Perseus of Macedon quickly assembled some "lemboi" at the outbreak of the Third Macedonian War in 171 BC.