Most things working, still have some kind of segfault problem to debug.