Get synchronisation and memory leak right
Better printing
Debugging prints