Teller was on the Hertz board, and Hagelstein soon had an interview with Lowell Wood. Hagelstein won the scholarship, and Wood then went on to offer him a summer position at LLNL. He had never heard of the lab, and Wood explained they were working on lasers, fusion, and similar concepts. Hagelstein arrived in May 1975, but nearly left when he found the area to be "disgusting" and immediately surmised they were working on weapons research when he saw the barbed wire and armed guards. He stayed on only because he met interesting people. Hagelstein was given the task of simulating the X-ray laser process on LLNL's supercomputers. His program, known as XRASER for "X-Ray laser", eventually grew to about 40,000 lines of code. He received his Masters in 1976 and took a full-time job at the lab intending to lead the development of a working laser. The idea was to use the lab's powerful fusion lasers as an energy source, as Hagelstein and Wood had suggested in their review paper. Hagelstein used XRASER to simulate about 45 such concepts before he found one that appeared to work. These used the lasers to heat metal foils and give off X-rays, but by the late 1970s, none of these experiments had been successful. After the Diablo Hawk failure, Hagelstein reviewed Chapline's idea and came up with a new concept that should be much more efficient. Chapline had used a lightweight material, a fiber taken from a local weed, but Hagelstein suggested using a metal rod instead. Although initially skeptical, Wood came to support the idea and successfully argued that both concepts be tested in Chapline's shot. The critical test was carried out on 14 November 1980 as "Dauphin", part of Operation Guardian. Both lasers worked, but Hagelstein's design was much more powerful. The lab soon decided to move forward with Hagelstein's version, forming the "R Program", led by another O-Group member, Tom Weaver. Hagelstein published his PhD thesis in January 1981 on the "Physics of short-wavelength-laser design". In contrast to Chapline and Wood's earlier work which focused on civilian applications, the thesis' introduction mentions several potential uses, even weapons taken from science fiction works. Hagelstein soon returned to the civilian side of the X-ray laser development, initially developing a concept in which the lab's fusion lasers would produce a plasma whose photons would pump another material.