Logging to file enabled. Small fixes.