Nanostructures boost the thermoelectric performance of PbS.