Sharpened check_tip() function