Added logger that works