Fix some configurations.
Add some logs.