Trying to remove segfault