Fix Profiler

Fix Regexcount var & Set CheckPoints at more logical places
Merge pull request #309 from gadcam/master

Fix Profiler