Adding output loggig