Semi-working multithreading. TODO: implement shared data in some way