Added variable to segfault