Working on non-multithreaded functionality
Without multithreading seems to work.
Fixes GCC compilation
lldb files