Fixed the segfault, ignore my comment about it in #7.