Solved segfaults.