Adding debug logging output