Additional support for multi-threaded programs.