Fixed bugs in log part.
Improved introduction of log part.