Created new macros for threaded compilation.
Added new statistics.