Production facility can get extra profit from being a direct market player. Products storage can be used for offsetting the expensive electricity. Combination of a CHP and thermal storage can be used to offset expensive electricity. An optimization of power flows is presented for one hypothetical case.