Multiple threads

Running multiple threads. Working now, small things to improve, needs cache.