Resynthesis function