Added more debugging log output.