Eliminated broadcast variables
Added option to include temporally lagged