[fixed] Thread not working properly.
[todo] Synchronise somehow threads. Ask Erik about it.