Segfault should be fixed now. Sanitizer still complains but that error is so hard to fix. Probably I'll rewrite this sometime