Modified logger. It totally works!