Improved log generation.