Algorithmic and hardware advances have dramatically improved the accuracy of ab initio calculations of the properties of materials. We are working on new methods for understanding the morphology and electronic structure of surfaces and interfaces, and improving the reliability of calculations of large condensed-matter systems and of the electronic structure of heavy atoms.