Changing arguments for weighting_kernel