Made a lot of progress, have no idea how to deal with these SegFaults. Halp?