Adding the RESPONSE logic