Making do_request public