Logs, fix variables init