Made some slight improvements and added profiler to expected hot code.