 Mohammed Shah instructed him to remain at the court and in 1841 selected him as tutor to his son Prince Abbas Mirza Molk Ara.In 1847 he was appointed governor of Firuzkuh.In 1851, he was chosen by Naser al-Din Shah to lead the Embassy to Khiva.