Removed some debugging prints and added more logging for profiling of GLM2.