Updated response method and loger logic