Added logger code.