Added support for profiling, moved inter-test-delay to better location so initial registration is faster.