Handle XML comments and some logging