Kinda sorta fixed segfaulting.