Implemented energy exchange.