Found the culprit of segfaults, needs NULL at the end of DHT_methods