I have added a mutex and a result matrix!