Found source of segfault on line 250.