Added response logging