Code for results fusion