This introduces profiling of queries