Changed modus from mpi to pthreads