Improved query log. Added syntax highlighting.