Finishes OMP parallelisation of main loop