Fixing logging function (unstable). Increasing timeouts