 He also sent Manaf beg Selimkhanov to Count Gudovich, to present his application for Russian citizenship in 1792.However he was detained in Derbent by Shaykhali Khan's men, who regarded himself as overlord of Baku until 1795.Shaykhali khan marched on Baku in 1794, however upon hearing the news from Shaki Khanate that Salim khan – new khan of Shaki – massacred all children of former khan, including Shaykhali's nephew, marched on Shaki, leaving Mirza Muhammad II near Balakhana with a thousand men.