Added logger creation into initilization