Added logging
Added more logging