Fixing logging
Fixing finishing and stuff
Fixing some thinkg in thread synch