Make find_cusps non-static