A method for producing crude condensate from pyrolyzable material, the method comprising - burning fuel in a fluidized bed boiler, thereby producing flue gas and heat, - heating some first heat resistant particulate material comprised by a fluidized bed of the fluidized bed boiler with said heat, - recovering heat from the flue gas to a heat transfer medium by using a heat exchanger arranged in the fluidized bed boiler, - optionally, heating some second heat resistant particulate material using the heated first heat resistant particulate material, - transferring at least some of the heated first heat resistant particulate material or the heated second heat resistant particulate material into a pyrolysis reactor, - conveying some pyrolyzable material into the pyrolysis reactor, - pyrolyzing the pyrolyzable material in the pyrolysis reactor by contacting the pyrolyzable material with the heated first heat resistant particulate material or the heated second heat resistant particulate material, thereby producing at least raw pyrolytic vapor and char, - cleaning at least some of the raw pyrolytic vapor thereby producing clean pyrolytic vapor, - conveying at least some of the clean pyrolytic vapor in the vapor form through a catalyst bed comprising catalyst material configured to deoxygenate oxygenated hydrocarbons, wherein the partial pressure of hydrogen of the vapors in the catalyst bed is less than 0.5 bar, thereby treating catalytically at least part of the raw pyrolytic vapor, wherein no external hydrogen (H 2) is fed to the process in between the pyrolysis reactor and the catalyst bed or into the catalyst bed, - transferring some of the char into the fluidized bed boiler or into a char burner, burning the char in the fluidized bed boiler or the char burner to produce heat, and recovering the heat produced by burning the char, the method further comprising - condensing at least some of the treated pyrolytic vapor product to a crude condensate, thereby producing some non-condensable gas as a side product, - feeding at least some of the non-condensable gas back to the process, upstream of said condensing, - regenerating at least some catalyst material of the catalyst bed, thereby producing some second flue gas, and - conveying at least some of the second flue gas back to the process, into the catalytic reactor or upstream of or into the pyrolysis reactor. - burning fuel in a fluidized bed boiler, thereby producing flue gas and heat, - heating some first heat resistant particulate material comprised by a fluidized bed of the fluidized bed boiler with said heat, - recovering heat from the flue gas to a heat transfer medium by using a heat exchanger arranged in the fluidized bed boiler, - optionally, heating some second heat resistant particulate material using the heated first heat resistant particulate material, - transferring at least some of the heated first heat resistant particulate material or the heated second heat resistant particulate material into a pyrolysis reactor, - conveying some pyrolyzable material into the pyrolysis reactor, - pyrolyzing the pyrolyzable material in the pyrolysis reactor by contacting the pyrolyzable material with the heated first heat resistant particulate material or the heated second heat resistant particulate material, thereby producing at least raw pyrolytic vapor and char, - cleaning at least some of the raw pyrolytic vapor thereby producing clean pyrolytic vapor, - conveying at least some of the clean pyrolytic vapor in the vapor form through a catalyst bed comprising catalyst material configured to deoxygenate oxygenated hydrocarbons, wherein the partial pressure of hydrogen of the vapors in the catalyst bed is less than 0.5 bar, thereby treating catalytically at least part of the raw pyrolytic vapor, wherein no external hydrogen (H 2) is fed to the process in between the pyrolysis reactor and the catalyst bed or into the catalyst bed, - transferring some of the char into the fluidized bed boiler or into a char burner, burning the char in the fluidized bed boiler or the char burner to produce heat, and recovering the heat produced by burning the char, - condensing at least some of the treated pyrolytic vapor product to a crude condensate, thereby producing some non-condensable gas as a side product, - feeding at least some of the non-condensable gas back to the process, upstream of said condensing, - regenerating at least some catalyst material of the catalyst bed, thereby producing some second flue gas, and - conveying at least some of the second flue gas back to the process, into the catalytic reactor or upstream of or into the pyrolysis reactor.