Had no luck getting it to work properly with OpenMP.
Things to look out for when doing this with multithreading: