Added support for changing the response format