Initial codebase. Now segfaults