Adding ability to get a response other than json.