Layline calculation threaded