Sentence:  He also met Count Rumford ( born Benjamin Thompson in Woburn, Mass . ) who was <WSD>then</WSD> serving the Elector of Bavaria , and the physicist Ritter ; these were Oersted 's main contacts in science . 
Meaning of the word marked with <WSD> tags:  at that time