In July 1790 the Russian Baltic Fleet was defeated by the Swedish at the Battle of Svensksund. Despite the damage, the silver lining for the Russians was that the Swedes now felt able to negotiate on an even footing and a peace was soon signed (Treaty of Värälä on 14 August 1790) based on the "status quo ante bellum", thus ending the threat of invasion. The peace also freed up military resources for the war against the Turks. Potemkin had moved his ever more lavish court to Bender and there were soon more successes against Turkey, including the capture of Batal-Pasha and, on the second attempt, of Kilia on the Danube. By the end of November, only one major target remained: the Turkish fortress of Izmail. At Potemkin's request, General Suvorov commanded the assault, which proved to be costly but effective. The victory was commemorated by Russia's first, albeit unofficial, national anthem, "Let the thunder of victory sound!", written by Gavrila Derzhavin and Osip Kozlovsky.