Fixed bug and also added Response to the log file.