Reworking gpu_refine_smooth