Still segfaulting weirdly