Improved log module