Added getResponse function