A lot of changes as usuall. Started playing with mutexes but I got it all wrong as usual =)