Added more logging calls, instead of stdout