A Smart Way to Balance Supply and Demand