Profiling and some minor optimizations