Making Energy More Flexible Through Thermal Storage