Added logging block
Added logging block