Updated DF combining code