Got snapping to centroid actually working!