Add memory profiling
Stop tickers when done. Fixes memory leak