Until Thursday night , Iran 's delegation was struggling with Dr. ElBaradei to find a face-saving formula that would allow Tehran to keep Natanz open but essentially nonoperational , said two officials involved in the talks .