Integration of heat pump into the system