Reworked "strange" way of logging. Now using "standard" way to log