Added some functions to response class.