Works now with multithread - split per thread tested