Cracking the Code for Solar Energy