Multi-threaded support using OpenMP.