Added response-getting function