Added a response method to the class.