Trying to have a minimal working program. Got rid of mutexs for now