Obermeyer accompanied him first to Kaswin and then to Tehran, where he replaced the teacher in the house of the Persian prince.