in an overall disastrous campaign against the Russians, suffering defeats at Gyumri, Kalagiri, the Zagam River (1805), Karakapet (1806), Karababa (1808), Ganja (1809), Meghri, the Aras River, and Akhalkalaki (1810). The tide started to decisively turn as Russia was sending more and more advanced weaponry and increasing numbers of soldiers. Commanding the southernmost Russian divisions during the long war, Kotlyarevsky defeated the numerically superior Persian army in the Battle of Aslanduz (1812) and in early 1813 stormed and took Lankaran. The Russians were encamped on the opposite bank of River Aras when his two British advisers Capt Christie and Lt Pottinger told him to post sentry pickets in short order, but Mirza ignored the warnings. Christie and other British officers tried to rally an army retreating in panic; for days the Russians launched fierce assaults, but at last Christie fell, and Mirza ordered a full retreat. Complacency cost 10,000 Persian lives; Mirza believing wrongly in the weight of superior numbers. In spite of the absence of leadership, The Persians at Lenkoran held out for weeks until, breaking through, the Russians slaughtered the garrison of 4,000 officers and men. In October 1813, with Abbas Mirza still commander-in-chief, Persia was compelled to make a severely disadvantageous peace known as the Treaty of Gulistan, irrevocably ceding swaths of its territory in the Caucasus, comprising present-day Georgia, Dagestan, and most of what most recently became the Republic of Azerbaijan. The only promise the Shah received in return was a lukewarm guarantee the Mirza would succeed to his throne, without let or hindrance. Persia's dire losses attracted the attention of the British Empire; following the reversal of initial successes, the Russians now posed a serious threat from the Caucasus. The drastic losses suffered by his forces made him realize that he needed to train Persia's military in the European style of war, and he started sending his students to Europe for military training. By introducing European-style regiments, Abbas Mirza believed it would enable Iran to gain the upper hand over Russia and to reclaim its lost territories. Influenced by Sultan Selim III's reforms, Abbas Mirza set out to create an Iranian version of the Ottoman Nizam-ı Cedid, and reduce the Qajar dependence on tribal and provincial forces. In 1811 and 1815, two groups were sent to Britain, and in 1812 a printing press was finished in Tabriz as a means to reproduce European military handbooks.