Added abilty to stop profiling.